package com.lyl.syt.rabbit.config;/**
 * @author Mr.Luo
 * @date 2022-05-24 17:48
 */

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Mr.Luo
 * @date 2022-05-24 17:48
 * @desc
 */
@Configuration
public class MqConfig {

    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
